/**
  ******************************************************************************
  * File Name          : route_lx_interface.h
  * Description        : Code for data process applications
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

#ifndef __lx_interface_H
#define __lx_interface_H

#include <stdint.h>

typedef enum
{
	ROUTE_PLTYP_LX_ACK   = 0xE1u,  /* 确认回复 无数据 */
  ROUTE_PLTYP_LX_CYCLE = 0xE3u,  /* 主机周期查询及回复 */
  ROUTE_PLTYP_LX_PARA  = 0xE5u,  /* 参数设置 */
  ROUTE_PLTYP_LX_SYNC  = 0xE7u,  /* 数据同步 */
	ROUTE_PLTYP_LX_DOACT = 0xE9u,  /* 控制指令 */
}Route_PlType_Lx_Type;

typedef struct
{
  uint8_t  lxkg;
}LtLx_ActType;

typedef struct
{
  uint8_t  lxtmen;
	uint8_t  dummy1;
	uint16_t lxot;
  uint32_t lxtm[6];
}LtLx_ParaType;

typedef struct
{
	volatile uint8_t lxkg_st;
	volatile uint8_t lxst;
}LtLx_StateType;

typedef struct
{
  uint8_t        hour;
	uint8_t        minute;
	uint8_t        second;
  LtLx_StateType state;
  LtLx_ParaType  para;
}LtLx_SyncType;

#endif /* __lx_interface_H */
